#define CURL_STATICLIB
#define BUILDING_LIBCURL
#include <iostream>
#include <curl/curl.h>
using namespace std;

int main(int argc, char *argv[])
{
	CURL *curl;
	CURLcode res;
	curl = curl_easy_init();
	if (curl)
	{
		curl_easy_setopt(curl, CURLOPT_URL, "https://www.lyshark.com");
		res = curl_easy_perform(curl);
		curl_easy_cleanup(curl);
	}

	std::cout << "返回状态: " << res << std::endl;

	system("pause");
	return 0;
}